package com.wk.note;

import lombok.Data;

import java.io.Serializable;

/**
 * @author WK
 * @version 1.0
 * @date 2024-07-11 19:25
 */
//package com.example.conceptnotebookjava;
//package com.example.conceptnotebookjava;

public class Note {

    private Long id; // 可选，如果需要的话可以使用ID来唯一标识笔记
    private String filename; // 文件名
    private String title; // 标题
    private String content; // 内容
    private String tags; // 标签
    private String category; // 类别

    public Note(Long id, String filename, String title, String content, String tags, String category) {
        this.id = id;
        this.filename = filename;
        this.title = title;
        this.content = content;
        this.tags = tags;
        this.category = category;
    }

    // Getters and setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Note{" +
                "id=" + id +
                ", filename='" + filename + '\'' +
                ", title='" + title + '\'' +
                ", tags='" + tags + '\'' +
                ", category='" + category + '\'' +
                '}';
    }
}
